package com.example.administrator.denglu_zhuce;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class DengLu_ZhuCe extends AppCompatActivity {
    EditText zhanghao;
    EditText mima;
    Button zhaohui;
    Button denglu;
    Button zhuce;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_deng_lu_zhu_ce);

        //  找到各自的id
        zhanghao = (EditText) findViewById(R.id.edit_name);
        mima = (EditText) findViewById(R.id.edit_password);
        zhaohui = (Button) findViewById(R.id.button_zhaohui);
        denglu = (Button) findViewById(R.id.button_denglu);
        zhuce = (Button) findViewById(R.id.button_zhuce);

        //  页面的跳转
        zhaohui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DengLu_ZhuCe.this, ZhaoHui.class);
                startActivity(intent);
            }
        });

        zhuce.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DengLu_ZhuCe.this, ZhuCe.class);
                startActivity(intent);
            }
        });

        denglu.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(DengLu_ZhuCe.this, GeRen.class);
                startActivity(intent);
            }
        });
    }
}
